import React, { Component } from 'react';
import PrivateRoute from './components/PrivateRoute'
import { HashRouter as Router,Route, Switch } from 'react-router-dom'
import Login from './views/Login/index'
import Index from './views/Index/index'

import './App.css'
import './assets/font/iconfont.css'
import 'antd/dist/antd.css';

class App extends Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route path='/login' component={Login} />
                    <PrivateRoute path='/' component={Index} />
                </Switch>
            </Router>
        )
    }
}

export default App;